Skip to content

Conversation

@raju-opti
Copy link
Contributor

@raju-opti raju-opti commented Jan 6, 2026

Summary

  • Replaced the TypeScript Rollup plugin with direct tsc compilation followed by pure bundling and updated outdated build tools.
  • Created examples/typescript directory with an example typescript project, which is used to check that typescript support is working properly.
  • CI Integration: Added typescript_test job to GitHub Actions workflow.

Test plan

Issues

  • FSSDK-12107

@coveralls
Copy link

coveralls commented Jan 6, 2026

Coverage Status

coverage: 77.716%. remained the same
when pulling 60987c7 on raju/build_refacator
into 53a4fbd on master.

@raju-opti raju-opti force-pushed the raju/build_refacator branch from 33c8155 to 775a6c5 Compare January 12, 2026 14:09
@raju-opti raju-opti changed the title Raju/build refacator [FSSDK-12107] refactor build system Jan 12, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the build system by replacing the Rollup TypeScript plugin with direct TypeScript compilation followed by bundling. It also adds a TypeScript example project to verify TypeScript support and integrates a CI check for it.

Changes:

  • Replaced rollup-plugin-typescript2 with direct tsc compilation to .build/ directory, then bundling from there
  • Updated Rollup plugins to newer versions and migrated from deprecated plugins to @rollup/plugin-terser
  • Added ts-example/ directory with comprehensive TypeScript usage examples and test infrastructure

Reviewed changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tsconfig.json Added importHelpers: true and split output between .build and dist directories
rollup.config.mjs Refactored to use ES modules, updated plugins, changed input paths to .build/
package.json Updated build scripts, added tslib, updated plugin dependencies, added ts-example script
package-lock.json Updated all rollup plugins and rollup itself to latest versions
ts-example/* New TypeScript example project demonstrating SDK usage patterns
scripts/run-ts-example.js New script to build SDK and run TypeScript example with datafile server
.github/workflows/javascript.yml Added ts-check job to CI pipeline
.gitignore Added .build/ directory to ignore list
lib/index.browser.ts Removed extraneous blank line
Files not reviewed (1)
  • ts-example/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@junaed-optimizely junaed-optimizely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on the type test addition. Looks solid!

@raju-opti raju-opti force-pushed the raju/build_refacator branch from 77247f1 to 749e806 Compare January 16, 2026 10:15
@raju-opti raju-opti merged commit c1af6da into master Jan 16, 2026
21 of 23 checks passed
@raju-opti raju-opti deleted the raju/build_refacator branch January 16, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants